class CreateDescriptions < ActiveRecord::Migration
  def self.up
    create_table :descriptions do |t|
      t.column :text, :text
      t.references :problem
      t.timestamps
    end
    change_table :problems do |t|
      t.references :description
    end
  end

  def self.down
    drop_table :descriptions
    remove_column(:problems, :description_id)
  end
end
